package adapter;

import java.util.List;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.ViewGroup;

public class MyViewPagerAdapter extends FragmentPagerAdapter
{
	private List<Fragment> fragmentList;
	public MyViewPagerAdapter(FragmentManager fm,List<Fragment> list)
	{
		super(fm);
		fragmentList=list;
	}

	@Override
	public Fragment getItem(int arg0)
	{
		return fragmentList.get(arg0);
	}

	@Override
	public int getCount()
	{
		return fragmentList.size();
	}

	@Override
	public Object instantiateItem(ViewGroup container, int position)
	{
		return super.instantiateItem(container, position);
	}
}
